home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2005 October
/
PCWOCT05.iso
/
Software
/
FromTheMag
/
Syn Text Editor 2.1.0.46
/
synsetup-2.1.0.46.exe
/
{app}
/
scripts
/
consts.js
< prev
next >
Wrap
Text File
|
2003-08-13
|
10KB
|
310 lines
/*
syn
Copyright (C) 2000-2003, Ascher Stefan. All rights reserved.
stievie@utanet.at, http://web.utanet.at/ascherst/
The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
the specific language governing rights and limitations under the License.
The Original Code is consts.js, released Wed, 22 May 2002 10:37:17 UTC.
The Initial Developer of the Original Code is Ascher Stefan.
Portions created by Ascher Stefan are Copyright (C) 2000-2003 Ascher Stefan.
All Rights Reserved.
Contributor(s): .
Alternatively, the contents of this file may be used under the terms of the
GNU General Public License Version 2 or later (the "GPL"), in which case
the provisions of the GPL are applicable instead of those above.
If you wish to allow use of your version of this file only under the terms
of the GPL and not to allow others to use your version of this file
under the MPL, indicate your decision by deleting the provisions above and
replace them with the notice and other provisions required by the GPL.
If you do not delete the provisions above, a recipient may use your version
of this file under either the MPL or the GPL.
You may retrieve the latest version of this file at the syn home page,
located at http://syn.sourceforge.net/
$Id: consts.js,v 1.5.2.5 2003/08/13 00:38:45 neum Exp $
*/
// Registry Key where syn saves all Settings
SynRegKey = "HKCU\Software\Ascher\syn";
// syn Commands for use with ExecCommand method
//Edit
scEAnsiToOem = 0;
scEAppendCut = 1;
scEAppenCopy = 2;
scEBlockSave = 3;
scEBlockSort = 4;
scECheckSpelling = 5;
scEComment = 6;
scECopy = 7;
scECut = 8;
scEOutdent = 9;
scEDelete = 10;
scEDeleteLine = 11;
scEDeleteToBOL = 12;
scEDeleteToEOL = 13;
scEDeleteWord = 14;
scEDuplicateLines = 15;
scEEncoding = 16;
scEFormatLines = 17;
scEIndent = 18;
scEInsertDateTime = 19;
scEInsertFile = 20;
scEJoinLines = 21;
scELeadingTabsToSpace = 22;
scELeadingSpaceToTabs = 23;
scEOEMToAnsi = 24;
scEPaste = 25;
scERedo = 26;
scECapitalize = 27;
scESelectAll = 28;
scESelectLine = 29;
scETabsToSpace = 30;
scEUncomment = 31;
scEUndo = 32;
//Search
scSFind = 33;
scSFindNext = 34;
scSFindPrev = 35;
scSFindNextWord = 36;
scSFindPrevWord = 37;
scSIncrSearchForward = 38;
scSIncrSearchBackward = 39;
scSReplace = 40;
scSGoto = 41;
scSGotoPrevOutput = 42;
scSGotoNextOutput = 43;
scSGotoLastChange = 44;
scSMatchBracket = 45;
scSShowCaret = 46;
//File
scFReopen = 47;
scFSave = 48;
scFSaveAs = 49;
scFSaveFTP = 50;
scFERxportHTML = 51;
scFExportRTF = 52;
scFClose = 53;
scFProperties = 54;
scFPrint = 55;
scFPrintPreview = 56;
// syn Edit Commands for use with ExecEditCommand method
ecNone = 0x00000000;
ecLeft = 0x00000001;
ecRight = 0x00000002;
ecUp = 0x00000003;
ecDown = 0x00000004;
ecWordLeft = 0x00000005;
ecWordRight = 0x00000006;
ecLineStart = 0x00000007;
ecLineEnd = 0x00000008;
ecPageUp = 0x00000009;
ecPageDown = 0x0000000A;
ecPageLeft = 0x0000000B;
ecPageRight = 0x0000000C;
ecPageTop = 0x0000000D;
ecPageBottom = 0x0000000E;
ecEditorTop = 0x0000000F;
ecEditorBottom = 0x00000010;
ecGotoXY = 0x00000011;
ecSelLeft = 0x00000065;
ecSelRight = 0x00000066;
ecSelUp = 0x00000067;
ecSelDown = 0x00000068;
ecSelWordLeft = 0x00000069;
ecSelWordRight = 0x0000006A;
ecSelLineStart = 0x0000006B;
ecSelLineEnd = 0x0000006C;
ecSelPageUp = 0x0000006D;
ecSelPageDown = 0x0000006E;
ecSelPageLeft = 0x0000006F;
ecSelPageRight = 0x00000070;
ecSelPageTop = 0x00000071;
ecSelPageBottom = 0x00000072;
ecSelEditorTop = 0x00000073;
ecSelEditorBottom = 0x00000074;
ecSelGotoXY = 0x00000075;
ecSelectAll = 0x000000C7;
ecCopy = 0x000000C9;
ecScrollUp = 0x000000D3;
ecScrollDown = 0x000000D4;
ecScrollLeft = 0x000000D5;
ecScrollRight = 0x000000D6;
ecInsertMode = 0x000000DD;
ecOverwriteMode = 0x000000DE;
ecToggleMode = 0x000000DF;
ecNormalSelect = 0x000000E7;
ecColumnSelect = 0x000000E8;
ecLineSelect = 0x000000E9;
ecMatchBracket = 0x000000FA;
ecGotoMarker0 = 0x0000012D;
ecGotoMarker1 = 0x0000012E;
ecGotoMarker2 = 0x0000012F;
ecGotoMarker3 = 0x00000130;
ecGotoMarker4 = 0x00000131;
ecGotoMarker5 = 0x00000132;
ecGotoMarker6 = 0x00000133;
ecGotoMarker7 = 0x00000134;
ecGotoMarker8 = 0x00000135;
ecGotoMarker9 = 0x00000136;
ecSetMarker0 = 0x0000015F;
ecSetMarker1 = 0x00000160;
ecSetMarker2 = 0x00000161;
ecSetMarker3 = 0x00000162;
ecSetMarker4 = 0x00000163;
ecSetMarker5 = 0x00000164;
ecSetMarker6 = 0x00000165;
ecSetMarker7 = 0x00000166;
ecSetMarker8 = 0x00000167;
ecSetMarker9 = 0x00000168;
ecContextHelp = 0x000001EA;
ecDeleteLastChar = 0x000001F5;
ecDeleteChar = 0x000001F6;
ecDeleteWord = 0x000001F7;
ecDeleteLastWord = 0x000001F8;
ecDeleteBOL = 0x000001F9;
ecDeleteEOL = 0x000001FA;
ecDeleteLine = 0x000001FB;
ecClearAll = 0x000001FC;
ecLineBreak = 0x000001FD;
ecInsertLine = 0x000001FE;
ecChar = 0x000001FF;
ecImeStr = 0x00000226;
ecUndo = 0x00000259;
ecRedo = 0x0000025A;
ecCut = 0x0000025B;
ecPaste = 0x0000025C;
ecBlockIndent = 0x00000262;
ecBlockUnindent = 0x00000263;
ecTab = 0x00000264;
ecShiftTab = 0x00000265;
ecAutoCompletion = 0x0000028A;
ecUpperCase = 0x0000026C;
ecLowerCase = 0x0000026D;
ecToggleCase = 0x0000026E;
ecTitleCase = 0x0000026F;
ecString = 0x00000276;
ecGotFocus = 0x000002BC;
ecLostFocus = 0x000002BD;
// Character Encoding
cpWin1251 = 0;
cpKOI8R = 1;
cpISO88592 = 2;
cpISO88595 = 3;
cpISO88597 = 4;
cpDOS866 = 5;
cpMacCE = 6; // Centeral European
cpMacCyrillic = 7;
cpMacGreek = 8;
// Export Type
etHTML = 0;
etRTF = 1;
etTeX = 2;
// Linebreak
lbNoChange = 0;
lbWindows = 1;
lbUNIX = 2;
lbMac = 3;
// ModalResult constants
mrNone = 0;
mrOK = 1;
mrCancel = 2;
mrAbort = 3;
mrRetry = 4;
mrIgnore = 5;
mrYes = 6;
mrNo = 7;
mrAll = 8;
mrNoToAll = 9;
mrYesToAll = 10;
// Cursors
crDefault = 0;
crNone = -1;
crArrow = -2;
crCross = -3;
crIBeam = -4;
crSizeNESW = -6;
crSizeNS = -7;
crSizeNWSE = -8;
crSizeWE = -9;
crUpArrow = -10;
crHourGlass = -11;
crDrag = -12;
crNoDrop = -13;
crHSplit = -14;
crVSplit = -15;
crMultiDrag = -16;
crSQLWait = -17;
crNo = -18;
crAppStart = -19;
crHelp = -20;
crHandPoint = -21;
crSizeAll = -22;
// Window State
wsNormal = 0;
wsMinimized = 1;
wsMaximized = 2;
// Browse for Folder
BIF_RETURNONLYFSDIRS = 0x0001;
BIF_DONTGOBELOWDOMAIN = 0x0002;
BIF_STATUSTEXT = 0x0004;
BIF_RETURNFSANCESTORS = 0x0008;
BIF_EDITBOX = 0x0010;
BIF_VALIDATE = 0x0020;
BIF_BROWSEFORCOMPUTER = 0x1000;
BIF_BROWSEFORPRINTER = 0x2000;
BIF_BROWSEINCLUDEFILES = 0x4000;
BSF_DESKTOP = 0; //Desktop is the root directory. With BIF_RETURNONLYFSDIRS circumvents problem with OK-button
BSF_INTERNETEXPLORER = 1; //Internet Explorer is the root
BSF_PROGRAMS = 2; //Programs folder of the start menu is the root
BSF_CONTROLPANEL = 3; //Control Panel is the root. Needs BIF_BROWSEINCLUDEFILES
BSF_PRINTERS = 4; //Printers folder is the root. Needs BIF_BROWSEINCLUDEFILES
BSF_DOCUMENTS = 5; //Documentsfolder is the root
BSF_FAVORITES = 6; //Favorites is the root
BSF_STARTUP = 7; //Startup-folder of the startmenu is the root. Needs BIF_BROWSEINCLUDEFILES
BSF_RECENT = 8; //Recentfolder is the root. Needs BIF_BROWSEINCLUDEFILES
BSF_SENDTO = 9; //Sendto-folder is the root. Needs BIF_BROWSEINCLUDEFILES
BSF_RECYCLEBIN = 10; //Recycle Bin is the root. Needs BIF_BROWSEINCLUDEFILES
BSF_STARTMENU = 11; //Start Menu is the root
BSF_DESKTOPDIRECTORY = 16; //The Desktopdirectory is the root directory
BSF_DRIVES = 17; //The drives (My computer) folder is the root
BSF_NETWORK = 18; //The networkneighbourhood is the root
BSF_NETHOOD = 19; //The nethoodfolder is the root
BSF_FONTS = 20; //The fontsfolder is the root
BSF_TEMPLATES = 21; //The templatesfolder is the root